doctype html
html
  head
    title 文档中心 | #{title}
    meta(charset='UTF-8')
    meta(name='description',content='这是一个基于 Markdown 的 wiki 系统')
    meta(name='renderer',content='webkit')
    meta(name='viewport',content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0')
    link(href='/lib/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet', type='text/css')
    link(href='/lib/font-awesome/css/font-awesome.min.css', rel='stylesheet', type='text/css')
    link(href='/lib/ionicons/css/ionicons.min.css', rel='stylesheet', type='text/css')
    link(href='/lib/art-reactor/dist/art-reactor.min.css', rel='stylesheet', type='text/css')
    link(href="/lib/mermaid-min/mermaid.css",rel="stylesheet")
    link(href="/lib/katex-build/katex.min.css",rel="stylesheet")
    link(href="/lib/github-markdown-css/github-markdown.css",rel="stylesheet")
    link(href='/theme/css/AdminLTE.min.css', rel='stylesheet', type='text/css')
    link(href='/theme/css/skins/_all-skins.min.css', rel='stylesheet', type='text/css')
    link(href='/stylesheets/markdown.min.css', rel='stylesheet', type='text/css')
    script(src='/lib/jquery/dist/jquery.min.js')
    //if lt IE 9
      script(src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js')
      script(src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js')

  block layout

  if title != '登陆'
    if title != '注册'
      if title != '初始化'
        script.
          var tree = !{JSON.stringify(tree.subNodes)};
      else
        script.
          var tree = [];
    else
      script.
        var tree = [];
  else
    script.
        var tree = [];
  script(src='/theme/js/app.min.js', type='text/javascript')
  script(src='/lib/art-dialog/dist/dialog-plus-min.js', type='text/javascript')
  script(src='/lib/slimScroll/jquery.slimscroll.min.js', type='text/javascript')
  script(src='/lib/bootstrap/dist/js/bootstrap.min.js', type='text/javascript')
  script(src="/lib/mermaid-min/mermaid.full.min.js")
  script(src="/lib/katex-build/katex.min.js")
  script(src="/lib/ace-min-noconflict/ace.js",charset="utf-8")
  script(src="/lib/ace-min-noconflict/ext-modelist.js")
  script(src="/lib/ace-min-noconflict/ext-static_highlight.js")
  if title == '初始化'
    script(src='/javascript/first.js')
  else
    script(src='/javascript/main.js')
